<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ECSHOP 管理中心 - 商品品牌 </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script style="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js"></script>
<link href="${pageContext.request.contextPath}/Styles/general.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/Styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>
    <span class="action-span"><a href="${pageContext.request.contextPath}/jsp2/brandAdd.jsp">添加品牌</a></span>
    <span class="action-span1"><a href="#">ECSHOP 管理中心</a></span>
    <span id="search_id" class="action-span1"> - 商品品牌 </span>
    <div style="clear:both"></div>
</h1>
<div class="form-div">
    <form action="" name="searchForm">
    <img src="${pageContext.request.contextPath}/img/icon_search.gif" width="26" height="22" border="0" alt="search" />
    <input type="text" name="brand_name" size="15" />
    <input type="submit" value=" 搜索 " class="button" />
    </form>
</div>
<form method="post" action="" name="listForm">
    <div class="list-div" id="listDiv">
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>品牌id</th>
                <th>品牌名称</th>
                <th>操作</th>
            </tr>
            <c:forEach var="list1" items="${list }">
	            <tr class="trs">
	                <td class="first-cell" align="center">
	                    
	                    ${list1.b_id}
	                    
	                </td>
	                <td align="center">
	                    ${list1.b_name}
	                </td>
	                
	                <td align="center">
	                <a href="${pageContext.request.contextPath}/BrandUpt.do?id=${list1.b_id}" title="编辑">编辑</a> |
	                <a href="${pageContext.request.contextPath}/BrandDel.do?b_id=${list1.b_id}" title="编辑">移除</a> 
	                </td>
	            </tr>
            </c:forEach>
            <tr>
                <td align="right" nowrap="true" colspan="6">
                    <div id="turn-page">
				                        总计 <span id="totalRecords">${size}</span>
				                        个记录分为 <span id="totalPages">${totalPage+1}</span>
				                        页当前第 <span id="pageCurrent">${page+1}</span>
				                        页
                        <span id="page-link">
                            <a href="${pageContext.request.contextPath}/BrandSel.do?currPage=0">首页</a>
                            <a href="${pageContext.request.contextPath}/BrandSel.do?currPage=${page-1<0?0:page-1}">上一页</a>
                            <a href="${pageContext.request.contextPath}/BrandSel.do?currPage=${page+1>totalPage?totalPage:page+1}">下一页</a>
                            <a href="${pageContext.request.contextPath}/BrandSel.do?currPage=${totalPage}">尾页</a>
                        </span>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</form>

<div id="footer">
共执行 3 个查询，用时 0.021251 秒，Gzip 已禁用，内存占用 2.194 MB<br />
版权所有 &copy; 2005-2012 上海商派网络科技有限公司，并保留所有权利。</div>
</body>
<script>
	/* $(function(){
		var trs = $(".trs");
		trs.each(function(i,v){
			console.log(i);
			console.log(v);
			if(i%2 ==0){
				v.style.backgroundColor="pink";
			}
		});
	}); */
</script>
</html>

       
    